package Class.a01;



public class Demo1 {
    public static void main(String[] args) throws NoSuchFieldException {
        Class<Student> stdClass = Student.class; // 获取public字段"score":
        System.out.println(stdClass.getField("score"));
        // 获取继承的public字段"name":
        System.out.println(stdClass.getField("name"));
        // 获取private字段"grade":
        System.out.println(stdClass.getField("grade"));

    }
}
